<?php get_sidebar(); ?>
<?php
// get category
$terms=array_values(get_the_terms($post->ID,'portfolio_category'));
?>
<div id="right" class="t-portfolio single style-3 video">
	
	<header id="header">
		<div id="header-inner">			
			<h2><?php bandit::lang('heading_portfolio',__('Portfolio','creatic')); ?></h2>
			<ul id="button-menu" class="clearfix">
				<li><a class="back" href="<?php echo get_term_link($terms[0]); ?>"><?php bandit::lang('portfolio_button_goback',__('&larr; Go Back','creatic')); ?></a></li>
			</ul>
		</div><!--end header-inner-->
	</header><!--end header-->
	
	<div id="content">
		<div id="content-inner" class="container-8">
			<div id="content-pad">	
				<div id="grid-wrap">
					<div class="grid-4">		
					<article class="item" id="item-<?php the_ID(); ?>">

						<div class="item-img">
							<?php
							if(isset($meta["_bandit_portfolio_video_url"])) {
								global $wp_embed;
								$video = $wp_embed->run_shortcode('[embed width="688"]'.$meta['_bandit_portfolio_video_url'][0].'[/embed]');
								echo $video;
							} elseif(isset($meta['_bandit_portfolio_video_embed_code'][0])) {
									echo $meta['_bandit_portfolio_video_embed_code'][0];
							}
							?>
						</div>

						<div class="item-content clearfix">
							<ul class="entry-meta clearfix">
								<li class="time"><i class="icon"></i><?php the_time('F j, Y'); ?></li>
								<li class="like-count"><a id="like-<?php the_ID(); ?>" href="#" <?php bandit::liked_class();?>>
									<i class="icon"></i><?php bandit::post_liked_count(); ?></a>
								</li>
								<?php edit_post_link('<i class="icon"></i>Edit', '<li class="edit">', '</li>'); ?>
							</ul>
						</div>
					</article>
					<h1 id="page-heading"><?php the_title(); ?></h1>	
					<div id="page-description" class="text">
						<?php the_content(); ?>
					</div>	
					
					</div><!--end grid-4-->		
				</div><!--end grid-wrap-->
				
				<div class="clear"></div>
			</div><!--end content-pad-->
			<?php if(bandit::get_option('footer_widgets')) { get_template_part('footer-widgets'); } // footer-widgets.php ?>
		</div><!--end content-inner-->
		<div class="clear"></div>
	</div><!--end content-->
	
</div><!--end right-->